//验证码相关api
import http from '@/utils/http.js'

//请求生成验证码
export const genCaptchaApi = ()=>{
    return http({
        url: '/gen',
        method: 'GET',
    })
}

export const validCaptchaApi = (captchaId,data)=>{
    return http({
        url: '/check?id=' + captchaId, 
        method: 'POST',
        data:data,
    })
}